home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Utilities / Commodities / Yak / Source / Prefs / Include / Root_window.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-29  |  3.7 KB  |  118 lines

  1.  
  2. #ifndef ROOT_H
  3.  
  4. #define ROOT_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13. #define GDX_AutoCheck                          0
  14. #define GDX_KeyActCheck                        1
  15. #define GDX_ScrActCheck                        2
  16. #define GDX_AutoPopCheck                       3
  17. #define GDX_RMBActCheck                        4
  18. #define GDX_MMBActCheck                        5
  19. #define GDX_AutoPat                            6
  20. #define GDX_PopPat                             7
  21. #define GDX_EditHotkeys                        8
  22. #define GDX_Miscellaneous                      9
  23. #define GDX_Blanking                           10
  24. #define GDX_Save                               11
  25. #define GDX_Cancel0                            12
  26. #define GDX_Use                                13
  27. #define GDX_MouseCycling                       14
  28. #define GDX_AutoPointDelay                     15
  29. #define GDX_DigitalClock                       16
  30.  
  31. /* Number of gadgets of root window */
  32.  
  33. #define Root_CNT          17
  34.  
  35. #define  MDX_PROJECT     0
  36. #define  MDX_OPEN        1
  37. #define  MDX_SAVE        2
  38. #define  MDX_SAVEAS      3
  39. #define  MDX_ABOUT       5
  40. #define  MDX_HIDE        7
  41. #define  MDX_QUIT        8
  42. #define  MDX_EDIT        9
  43. #define  MDX_DEFAULT     10
  44. #define  MDX_LASTSAVED   11
  45. #define  MDX_ACTIVE      12
  46. #define  MDX_OPTIONS     13
  47. #define  MDX_CREATEICONS 14
  48.  
  49.  
  50. /* Global variables */
  51.  
  52. #ifdef GADTOOLS
  53. GLOBAL struct Window       *RootWnd;
  54. GLOBAL struct Gadget       *RootGList;
  55. GLOBAL struct Menu         *RootMenus;
  56. GLOBAL struct Gadget       *RootGadgets[];
  57. GLOBAL UWORD                RootWidth;
  58. GLOBAL UWORD                RootHeight;
  59. GLOBAL UBYTE               *RootWdt;
  60. GLOBAL struct IntuiText     RootIText[];
  61. GLOBAL struct NewMenu       RootNewMenu[];
  62. GLOBAL struct NewGadget     RootNGad[];
  63. GLOBAL ULONG                RootGTags[];
  64. #endif
  65.  
  66.  
  67. /* Exported functions */
  68.  
  69. GLOBAL VOID InitRootITexts       (VOID);
  70. GLOBAL VOID RootRender           (VOID);
  71. GLOBAL int  OpenRootWindow       (VOID);
  72. GLOBAL VOID CloseRootWindow      (VOID);
  73. GLOBAL BOOL ShowRootWindow       (VOID);
  74. GLOBAL LONG HandleRootIDCMP      (VOID);
  75. GLOBAL BOOL SwitchFromRootWindow (UBYTE WindowID);
  76.  
  77. #ifdef MUI
  78. GLOBAL APTR   RootWnd;
  79. GLOBAL APTR   RootObjects[];
  80. GLOBAL UBYTE *RootWdt;
  81. #endif
  82.  
  83. #ifdef BGUI                     /* NMC */
  84. GLOBAL struct Window  *RootWnd;
  85. GLOBAL Object         *RootObjects[];
  86. GLOBAL UBYTE          *RootWdt;
  87. GLOBAL struct NewMenu  RootNewMenu[];
  88. #endif
  89.  
  90. #if defined(MUI) || defined(BGUI)               /* NMC */
  91. #define    CH_KeyActivate       RootObjects[GDX_KeyActCheck]
  92. #define    CH_MMBActivate       RootObjects[GDX_MMBActCheck]
  93. #define    CH_RMBActivate       RootObjects[GDX_RMBActCheck]
  94. #define    CH_AutoPoint         RootObjects[GDX_AutoCheck]
  95. #define    STR_AutoScreen       RootObjects[GDX_AutoPat]
  96. #define    SL_AutoPointDelay    RootObjects[GDX_AutoPointDelay]
  97. #define    CH_ScreensActivation RootObjects[GDX_ScrActCheck]
  98. #define    CH_AutoPopToFront    RootObjects[GDX_AutoPopCheck]
  99. #define    STR_PopWindows       RootObjects[GDX_PopPat]
  100. #define    BT_MouseCycling      RootObjects[GDX_MouseCycling]
  101. #define    BT_Blanking          RootObjects[GDX_Blanking]
  102. #define    BT_EditHotkeys       RootObjects[GDX_EditHotkeys]
  103. #define    BT_Miscellaneous     RootObjects[GDX_Miscellaneous]
  104. #define    BT_DigitalClock      RootObjects[GDX_DigitalClock]
  105. #define    BT_Save              RootObjects[GDX_Save]
  106. #define    BT_Use               RootObjects[GDX_Use]
  107. #define    BT_Cancel            RootObjects[GDX_Cancel0]
  108.  
  109. GLOBAL APTR CreateRootWindow   (VOID);
  110. GLOBAL BOOL ShowRootWindow     (VOID);
  111. GLOBAL VOID CloseRootWindow    (VOID);
  112. GLOBAL LONG HandleRootReturnID (LONG id);
  113.  
  114. #endif /* MUI or BGUI */
  115.  
  116. #endif /* ROOT_H */
  117.  
  118.